package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * AccJnSp generated by hbm2java
 */
@Entity
@Table(name="acc_jn_sp"
    ,catalog="lmis"
)
public class AccJnSp  implements java.io.Serializable {


     private long jnSpRecNo;
     private Short accPeriodNo;
     private Short accPeriodMonthNo;
     private Date jnSpRecDate;
     private String jnSpCode;
     private String jnSpCodeShort;
     private String jnSpCodeLong;
     private Short jnSpOrgNo;
     private Short loanContractGrpNo;
     private Short jnTypeNo;
     private Short jnSubTypeNo;
     private BigDecimal jnSpAmt;
     private String docCode01;
     private String jnSpComment;
     private Short statusPosted;
     private Short createdUserNo;
     private Date createdDtm;
     private Short payPartNo;
     private Set<AccJnSpDetail> accJnSpDetails = new HashSet<AccJnSpDetail>(0);

    public AccJnSp() {
    }

	
    public AccJnSp(long jnSpRecNo) {
        this.jnSpRecNo = jnSpRecNo;
    }
    public AccJnSp(long jnSpRecNo, Short accPeriodNo, Short accPeriodMonthNo, Date jnSpRecDate, String jnSpCode, String jnSpCodeShort, String jnSpCodeLong, Short jnSpOrgNo, Short loanContractGrpNo, Short jnTypeNo, Short jnSubTypeNo, BigDecimal jnSpAmt, String docCode01, String jnSpComment, Short statusPosted, Short createdUserNo, Date createdDtm, Short payPartNo, Set<AccJnSpDetail> accJnSpDetails) {
       this.jnSpRecNo = jnSpRecNo;
       this.accPeriodNo = accPeriodNo;
       this.accPeriodMonthNo = accPeriodMonthNo;
       this.jnSpRecDate = jnSpRecDate;
       this.jnSpCode = jnSpCode;
       this.jnSpCodeShort = jnSpCodeShort;
       this.jnSpCodeLong = jnSpCodeLong;
       this.jnSpOrgNo = jnSpOrgNo;
       this.loanContractGrpNo = loanContractGrpNo;
       this.jnTypeNo = jnTypeNo;
       this.jnSubTypeNo = jnSubTypeNo;
       this.jnSpAmt = jnSpAmt;
       this.docCode01 = docCode01;
       this.jnSpComment = jnSpComment;
       this.statusPosted = statusPosted;
       this.createdUserNo = createdUserNo;
       this.createdDtm = createdDtm;
       this.payPartNo = payPartNo;
       this.accJnSpDetails = accJnSpDetails;
    }
   
     @Id 

    
    @Column(name="JN_SP_REC_NO", unique=true, nullable=false)
    public long getJnSpRecNo() {
        return this.jnSpRecNo;
    }
    
    public void setJnSpRecNo(long jnSpRecNo) {
        this.jnSpRecNo = jnSpRecNo;
    }

    
    @Column(name="ACC_PERIOD_NO")
    public Short getAccPeriodNo() {
        return this.accPeriodNo;
    }
    
    public void setAccPeriodNo(Short accPeriodNo) {
        this.accPeriodNo = accPeriodNo;
    }

    
    @Column(name="ACC_PERIOD_MONTH_NO")
    public Short getAccPeriodMonthNo() {
        return this.accPeriodMonthNo;
    }
    
    public void setAccPeriodMonthNo(Short accPeriodMonthNo) {
        this.accPeriodMonthNo = accPeriodMonthNo;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="JN_SP_REC_DATE", length=19)
    public Date getJnSpRecDate() {
        return this.jnSpRecDate;
    }
    
    public void setJnSpRecDate(Date jnSpRecDate) {
        this.jnSpRecDate = jnSpRecDate;
    }

    
    @Column(name="JN_SP_CODE", length=20)
    public String getJnSpCode() {
        return this.jnSpCode;
    }
    
    public void setJnSpCode(String jnSpCode) {
        this.jnSpCode = jnSpCode;
    }

    
    @Column(name="JN_SP_CODE_SHORT", length=5)
    public String getJnSpCodeShort() {
        return this.jnSpCodeShort;
    }
    
    public void setJnSpCodeShort(String jnSpCodeShort) {
        this.jnSpCodeShort = jnSpCodeShort;
    }

    
    @Column(name="JN_SP_CODE_LONG", length=20)
    public String getJnSpCodeLong() {
        return this.jnSpCodeLong;
    }
    
    public void setJnSpCodeLong(String jnSpCodeLong) {
        this.jnSpCodeLong = jnSpCodeLong;
    }

    
    @Column(name="JN_SP_ORG_NO")
    public Short getJnSpOrgNo() {
        return this.jnSpOrgNo;
    }
    
    public void setJnSpOrgNo(Short jnSpOrgNo) {
        this.jnSpOrgNo = jnSpOrgNo;
    }

    
    @Column(name="LOAN_CONTRACT_GRP_NO")
    public Short getLoanContractGrpNo() {
        return this.loanContractGrpNo;
    }
    
    public void setLoanContractGrpNo(Short loanContractGrpNo) {
        this.loanContractGrpNo = loanContractGrpNo;
    }

    
    @Column(name="JN_TYPE_NO")
    public Short getJnTypeNo() {
        return this.jnTypeNo;
    }
    
    public void setJnTypeNo(Short jnTypeNo) {
        this.jnTypeNo = jnTypeNo;
    }

    
    @Column(name="JN_SUB_TYPE_NO")
    public Short getJnSubTypeNo() {
        return this.jnSubTypeNo;
    }
    
    public void setJnSubTypeNo(Short jnSubTypeNo) {
        this.jnSubTypeNo = jnSubTypeNo;
    }

    
    @Column(name="JN_SP_AMT", precision=15)
    public BigDecimal getJnSpAmt() {
        return this.jnSpAmt;
    }
    
    public void setJnSpAmt(BigDecimal jnSpAmt) {
        this.jnSpAmt = jnSpAmt;
    }

    
    @Column(name="DOC_CODE_01", length=20)
    public String getDocCode01() {
        return this.docCode01;
    }
    
    public void setDocCode01(String docCode01) {
        this.docCode01 = docCode01;
    }

    
    @Column(name="JN_SP_COMMENT", length=200)
    public String getJnSpComment() {
        return this.jnSpComment;
    }
    
    public void setJnSpComment(String jnSpComment) {
        this.jnSpComment = jnSpComment;
    }

    
    @Column(name="STATUS_POSTED")
    public Short getStatusPosted() {
        return this.statusPosted;
    }
    
    public void setStatusPosted(Short statusPosted) {
        this.statusPosted = statusPosted;
    }

    
    @Column(name="CREATED_USER_NO")
    public Short getCreatedUserNo() {
        return this.createdUserNo;
    }
    
    public void setCreatedUserNo(Short createdUserNo) {
        this.createdUserNo = createdUserNo;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="CREATED_DTM", length=19)
    public Date getCreatedDtm() {
        return this.createdDtm;
    }
    
    public void setCreatedDtm(Date createdDtm) {
        this.createdDtm = createdDtm;
    }

    
    @Column(name="PAY_PART_NO")
    public Short getPayPartNo() {
        return this.payPartNo;
    }
    
    public void setPayPartNo(Short payPartNo) {
        this.payPartNo = payPartNo;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="accJnSp")
    public Set<AccJnSpDetail> getAccJnSpDetails() {
        return this.accJnSpDetails;
    }
    
    public void setAccJnSpDetails(Set<AccJnSpDetail> accJnSpDetails) {
        this.accJnSpDetails = accJnSpDetails;
    }




}


